const KoaBouncer = require('koa-bouncer')
const {GETSALARY,ADDSALARY,UPDATESALARY,DELSALARY,SEARCHSALARY,UPDATECMIS} = require('../service/salary.service')
module.exports = {
    // 获取员工
    getSalary: async (ctx, next) => {
        await GETSALARY(ctx, next)
    },
    // 添加工资条
    addSalary: async (ctx, next) => {
        await ADDSALARY(ctx, next)
    },
    // 删除工资天
    delSalary: async (ctx, next) => {
        await DELSALARY(ctx, next)
    },
    // 更新工资条
    updateSalary: async (ctx, next) => {
        await UPDATESALARY(ctx, next)
    },
    // 搜索工资条
    searchSalary: async (ctx, next) => {
        await SEARCHSALARY(ctx, next)
    },
    updateCmis: async (ctx, next) => {
        await UPDATECMIS(ctx, next)
    },
}